//
// Created by Administrator on 2017/9/28 0028.
//

#ifdef __cplusplus
extern "C" {
#endif
#include <jni.h>
#include <android/log.h>
#include <assert.h>
#include <stdio.h>

#define LOG_TAG "junfutong"
#define LOGD(...) __android_log_print(ANDROID_LOG_DEBUG,LOG_TAG,__VA_ARGS__)
/*-default api url-*/
#define DEFAULT_API_URL_JFT "http://3.api.jtpay.com"
#define DEFAULT_API_URL_CFT "https://api.paycheng.com"
#define DEFAULT_API_URL_CS "http://3ywapi.jtpay.com"
#define DEFAULT_API_URL_CFTCS "http://3ywapi.paycheng.com"
#define DEFAULT_API_URL_YFT "http://api.veppay.com"
#define DEFAULT_API_URL_JFT_ZL "https://api.z.jtpay.com"
#define DEFAULT_API_URL_WSF "http://3.api.paywap.cn"
#define DEFAULT_API_URL_JFT_ZL_CS "http://3zlywapi.jtpay.com"

/*-default order url-*/
#define DEFAULT_PAY_URL_JFT "http://3.order.jtpay.com/jh-web-order/order/receiveOrder"
#define DEFAULT_PAY_URL_CFT "https://order.paycheng.com/jh-web-order/order/receiveOrder"
#define DEFAULT_PAY_URL_CS "http://3order.jtpay.com/jh-web-order/order/receiveOrder"
#define DEFAULT_PAY_URL_CFTCS "http://3order.paycheng.com/jh-web-order/order/receiveOrder"
#define DEFAULT_PAY_URL_YFT "http://order.veppay.com/jh-web-order/order/receiveOrder"
#define DEFAULT_PAY_URL_JFT_ZL "https://order.z.jtpay.com/jh-web-order/order/receiveOrder"
#define DEFAULT_PAY_URL_WSF "http://order.paywap.cn/jh-web-order/order/receiveOrder"
#define DEFAULT_PAY_URL_JFT_ZL_CS "http://3zlorder.jtpay.com/jh-web-order/order/receiveOrder"

/*-main api-*/
#define GET_SERVICES_JFT "http://ywapi.jtpay.com"
#define GET_SERVICES_CFT "https://api.paycheng.com"
#define GET_SERVICES_CS "http://3ywapi.jtpay.com"
#define GET_SERVICES_CFTCS "http://3ywapi.paycheng.com"
#define GET_SERVICES_YFT "http://api.veppay.com"
#define GET_SERVICES_JFT_ZL "https://api.z.jtpay.com"
#define GET_SERVICES_WSF "http://3.api.paywap.cn"
#define GET_SERVICES_JFT_ZL_CS "http://3zlywapi.jtpay.com"


/*-sharepreference key-*/
#define SHAREPERFERENCE_NAME "paySdk"
#define SHAREPERFERENCE_MSG_KEY "PaySdkMsg"
#define SHAREPERFERENCE_SERVCERS_SUM_KEY "PaySdkServersSum"
#define SHAREPERFERENCE_SERVCERS_CURRENT_KEY "PaySdkOrderServersCurrent"
#define SHAREPERFERENCE_ORDERSERVERS_SUM_KEY "PaySdkOrderServersSum"
#define SHAREPERFERENCE_ORDERSERVERS_CURRENT_KEY "PaySdkOrderServersCurrent"

jstring
Java_sdk_pay_constant_PayConstant_mainGetServicesJftFromJNI(
        JNIEnv *env,
        jobject /* this */) {
    return env->NewStringUTF(GET_SERVICES_JFT);
}
jstring
Java_sdk_pay_constant_PayConstant_mainGetServicesJftzlFromJNI(
        JNIEnv *env,
        jobject /* this */) {
    return env->NewStringUTF(GET_SERVICES_JFT_ZL);
}
jstring
Java_sdk_pay_constant_PayConstant_mainGetServicesJftzlcsFromJNI(
        JNIEnv *env,
        jobject /* this */) {
    return env->NewStringUTF(GET_SERVICES_JFT_ZL_CS);
}
jstring
Java_sdk_pay_constant_PayConstant_mainGetServicesWsfFromJNI(
        JNIEnv *env,
        jobject /* this */) {
    return env->NewStringUTF(GET_SERVICES_WSF);
}
jstring
Java_sdk_pay_constant_PayConstant_mainGetServicesCftFromJNI(
        JNIEnv *env,
        jobject /* this */) {
    return env->NewStringUTF(GET_SERVICES_CFT);
}
jstring
Java_sdk_pay_constant_PayConstant_mainGetServicesYftFromJNI(
        JNIEnv *env,
        jobject /* this */) {
    return env->NewStringUTF(GET_SERVICES_YFT);
}

jstring
Java_sdk_pay_constant_PayConstant_mainGetServicesCftcsFromJNI(
        JNIEnv *env,
        jobject /* this */) {
    return env->NewStringUTF(GET_SERVICES_CFTCS);
}

jstring
Java_sdk_pay_constant_PayConstant_mainGetServicesCsFromJNI(
        JNIEnv *env,
        jobject /* this */) {
    return env->NewStringUTF(GET_SERVICES_CS);
}
jstring
Java_sdk_pay_constant_PayConstant_defaultPayUrlJftFromJNI(
        JNIEnv *env,
        jobject /* this */) {
    return env->NewStringUTF(DEFAULT_PAY_URL_JFT);
}
jstring
Java_sdk_pay_constant_PayConstant_defaultPayUrlJftzlFromJNI(
        JNIEnv *env,
        jobject /* this */) {
    return env->NewStringUTF(DEFAULT_PAY_URL_JFT_ZL);
}
jstring
Java_sdk_pay_constant_PayConstant_defaultPayUrlJftzlcsFromJNI(
        JNIEnv *env,
        jobject /* this */) {
    return env->NewStringUTF(DEFAULT_PAY_URL_JFT_ZL_CS);
}
jstring
Java_sdk_pay_constant_PayConstant_defaultPayUrlWsfFromJNI(
        JNIEnv *env,
        jobject /* this */) {
    return env->NewStringUTF(DEFAULT_PAY_URL_WSF);
}
jstring
Java_sdk_pay_constant_PayConstant_defaultPayUrlCftFromJNI(
        JNIEnv *env,
        jobject /* this */) {
    return env->NewStringUTF(DEFAULT_PAY_URL_CFT);
}
jstring
Java_sdk_pay_constant_PayConstant_defaultPayUrlYftFromJNI(
        JNIEnv *env,
        jobject /* this */) {
    return env->NewStringUTF(DEFAULT_PAY_URL_YFT);
}
jstring
Java_sdk_pay_constant_PayConstant_defaultPayUrlCsFromJNI(
        JNIEnv *env,
        jobject /* this */) {
    return env->NewStringUTF(DEFAULT_PAY_URL_CS);
}
jstring
Java_sdk_pay_constant_PayConstant_defaultPayUrlCftcsFromJNI(
        JNIEnv *env,
        jobject /* this */) {
    return env->NewStringUTF(DEFAULT_PAY_URL_CFTCS);
}

jstring
Java_sdk_pay_constant_PayConstant_defaultApiUrlJftFromJNI(
        JNIEnv *env,
        jobject /* this */) {
    return env->NewStringUTF(DEFAULT_API_URL_JFT);
}
jstring
Java_sdk_pay_constant_PayConstant_defaultApiUrlJftzlFromJNI(
        JNIEnv *env,
        jobject /* this */) {
    return env->NewStringUTF(DEFAULT_API_URL_JFT_ZL);
}
jstring
Java_sdk_pay_constant_PayConstant_defaultApiUrlJftzlcsFromJNI(
        JNIEnv *env,
        jobject /* this */) {
    return env->NewStringUTF(DEFAULT_API_URL_JFT_ZL_CS);
}
jstring
Java_sdk_pay_constant_PayConstant_defaultApiUrlWsfFromJNI(
        JNIEnv *env,
        jobject /* this */) {
    return env->NewStringUTF(DEFAULT_API_URL_WSF);
}
jstring
Java_sdk_pay_constant_PayConstant_defaultApiUrlCftFromJNI(
        JNIEnv *env,
        jobject /* this */) {
    return env->NewStringUTF(DEFAULT_API_URL_CFT);
}
jstring
Java_sdk_pay_constant_PayConstant_defaultApiUrlYftFromJNI(
        JNIEnv *env,
        jobject /* this */) {
    return env->NewStringUTF(DEFAULT_API_URL_YFT);
}
jstring
Java_sdk_pay_constant_PayConstant_defaultApiUrlCftcsFromJNI(
        JNIEnv *env,
        jobject /* this */) {
    return env->NewStringUTF(DEFAULT_API_URL_CFTCS);
}

jstring
Java_sdk_pay_constant_PayConstant_defaultApiUrlCsFromJNI(
        JNIEnv *env,
        jobject /* this */) {
    return env->NewStringUTF(DEFAULT_API_URL_CS);
}
jstring
Java_sdk_pay_constant_PayConstant_shareperferenceNameFromJNI(
        JNIEnv *env,
        jobject /* this */) {
    return env->NewStringUTF(SHAREPERFERENCE_NAME);
}
jstring
Java_sdk_pay_constant_PayConstant_shareperferenceMsgKeyFromJNI(
        JNIEnv *env,
        jobject /* this */) {
    return env->NewStringUTF(SHAREPERFERENCE_MSG_KEY);
}
jstring
Java_sdk_pay_constant_PayConstant_shareperferenceServcersSumKeyFromJNI(
        JNIEnv *env,
        jobject /* this */) {
    return env->NewStringUTF(SHAREPERFERENCE_SERVCERS_SUM_KEY);
}
jstring
Java_sdk_pay_constant_PayConstant_shareperferenceServcersCurrentKeyFromJNI(
        JNIEnv *env,
        jobject /* this */) {
    return env->NewStringUTF(SHAREPERFERENCE_SERVCERS_CURRENT_KEY);
}
jstring
Java_sdk_pay_constant_PayConstant_shareperferenceOrderserversSumKeyFromJNI(
        JNIEnv *env,
        jobject /* this */) {
    return env->NewStringUTF(SHAREPERFERENCE_ORDERSERVERS_SUM_KEY);
}
jstring
Java_sdk_pay_constant_PayConstant_shareperferenceOrderserversCurrentKeyFromJNI(
        JNIEnv *env,
        jobject /* this */) {
    return env->NewStringUTF(SHAREPERFERENCE_ORDERSERVERS_CURRENT_KEY);
}

#ifdef __cplusplus
}
#endif